// Launcher.cpp (c) 2011 JV Software
//

#include "Engine.h"

//
// WinMain
//
int WINAPI WinMain( HINSTANCE hinst, HINSTANCE hPrev, LPSTR lpCmdLine, int nCmdShow ) {
	// Init the game engine.
	engine->Init( hinst, FWSTR(lpCmdLine) );

	// Main message loop
    MSG msg = {0};
    while( WM_QUIT != msg.message )
    {
        if( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) )
        {
            TranslateMessage( &msg );
            DispatchMessage( &msg );
        }
        else
        {
            engine->Frame();
        }
    }

	engine->Shutdown();

	return 0;
}